package io.github.talelin.latticy.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import io.github.talelin.latticy.model.CategoryDO;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author generator@TaleLin
 * @since 2021-06-19
 */
public interface CategoryService extends IService<CategoryDO> {

    CategoryDO getCategoryById(Integer id);

    void deleteCategory(Integer id);

    IPage<CategoryDO> getCategoriesByPage(Long count, Long page, Integer root);

    IPage<CategoryDO> getSubCategoriesByPage(Long count, Long page, Integer id);
}
